<!DOCTYPE html>
<html>
<!--
Copyright 2014 The Closure Library Authors. All Rights Reserved.

Use of this source code is governed by the Apache License, Version 2.0.
See the COPYING file for details.

Author:  fy@google.com (Frank Yellin)
-->
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ECC Performance Tests</title>
<script src="../../../closure/base.js"></script>
<script src="test_js_deps-runfiles.js"></script>
<script>
  goog.require('goog.testing.jsunit');
  goog.require('e2e.ecc.PrimeCurve');
  goog.require('e2e.ecc.eccTester');
</script>

</head>
<body>
<h1>ECC Performance tests</h1>
<p>
<strong>User-agent:</strong>
<script>document.write(navigator.userAgent);</script>
</p>

<script>

function shouldRunTests() {
  return e2e.testing.Util.hasRunPerfParameter();
}

function testP256() {
  e2e.ecc.eccTester.runBenchmarkForCurve(
    e2e.ecc.PrimeCurve.P_256);
}

function testP834() {
  e2e.ecc.eccTester.runBenchmarkForCurve(
    e2e.ecc.PrimeCurve.P_384);
}

</script>
</body>
</html>
